//
//  ViewController.m
//  Vocal concert
//
//  Created by dllo on 16/6/7.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "ViewController.h"
#import "Heading.h"
#import "View.h"
#import "Subheading.h"
@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
    [self viewController];
    [self viewPhoto];
}
-(void)viewPhoto{
   
    UIImage *mage =[UIImage imageNamed:@"4.jpg"];
    UIImageView *bac = [[UIImageView alloc]initWithImage:mage];
    bac.frame = CGRectMake(20, 120, 180, 300);
    [self.view addSubview: bac];
    [bac release];
    UIImage *mage1 = [UIImage imageNamed:@"icon_date_blue@2x.png"];
    UIImageView *bab = [[UIImageView alloc]initWithImage:mage1];
    bab.frame = CGRectMake(200, 120, 20, 20);
    [self.view addSubview:bab];
    [bab release];
    UIImage *mage2 = [UIImage imageNamed:@"icon_sponsor_blue.png"];
    UIImageView *bao = [[UIImageView alloc]initWithImage:mage2];
    bao.frame = CGRectMake(200, 160, 20, 20);
    [self.view addSubview:bao];
    [bao release];
    UIImage *mage3 = [UIImage imageNamed:@"icon_catalog_blue@2x.png"];
    UIImageView *qwe = [[UIImageView alloc]initWithImage:mage3];
    qwe.frame = CGRectMake(200, 200, 20, 20);
    [self.view addSubview:qwe];
    [qwe release];
    UIImage *mage4 = [UIImage imageNamed:@"icon_spot_blue@2x.png"];
    UIImageView *qqq = [[UIImageView alloc]initWithImage:mage4];
    qqq.frame = CGRectMake(200, 240, 20, 20);
    [self.view addSubview:qqq];
    [qqq release];
    
    
}


-(void)viewController{
    View *view = [[View alloc]initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height) withText:@"赵雷2014年新专辑《吉姆餐厅》首发演唱会,北京站" ];
    [self.view addSubview:view];
    [view release];
    View *view1 =[[View alloc]initWithFrame:CGRectMake(0, 370, 100, 50) withText:@"活动介绍"];
    [self.view addSubview:view1];
    [view1 release];
    Subheading *view2 =[[Subheading alloc]initWithFrame:CGRectMake(220, 115, 200, 30) withText:@"10-19 18:00 -- 10-19 23:30"];
    [self.view addSubview:view2];
    [view2 release];
    Subheading *view3 =[[Subheading alloc]initWithFrame:CGRectMake(220, 155, 200, 30) withText:@"赵雷"];
    [self.view addSubview:view3];
    [view3 release];
    Subheading *view4 =[[Subheading alloc]initWithFrame:CGRectMake(220, 195, 200, 30) withText:@"类型:音乐"];
    [self.view addSubview:view4];
    [view4 release];
    Subheading *view5 =[[Subheading alloc]initWithFrame:CGRectMake(220, 235, 200, 50) withText:@"北京 东城区 北京市东城区和平里西街79号糖果大楼三层"];
    [self.view addSubview:view5];
    [view5 release];
    
    Subheading *view6 =[[Subheading alloc]initWithFrame:CGRectMake(0, 450, 500, 280) withText:@"【新专辑2014全国巡演合作咨询】\n@蒋步停\n微博http://weibo.com/jiangbuting\n豆瓣http://www.douban.com/people/jiangjin/\nQQ11393657158\n邮箱1393657158@qq.com\n 手机18610967776\n【赵雷巡演两千人群241855614】\n【赵雷歌迷背景活动群18934699】\n -------------------------------\n 赵雷2014新专辑《吉姆餐厅》专辑首发演出,北京站\n演出时间:10月19日\n"];
    [self.view addSubview:view6];
    [view6 release];
  
  
    
}
@end
